import request from "./http"
// 获取歌曲url
export function getSongUrl(params){

    return request({
        url:"/song/url",
        method:"get",
        params
    })

}
// 获取歌曲详情
export function getSongdata(params){
    return request({
        url:"/song/detail",
        method:'get',
        params
    })
}

//获取歌词
export function getLyric(params){
    return request({
        url:"/lyric",
        method:"get",
        params
    })
}

/////user/record?uid=32953014&type=1
//获取用户播放记录
export function getyonhuhtis(params){
    return request({
        url:"/artist/list",
        method:"get",
        params
    })
}
//收藏/playlist/subscribe
// 收藏/取消喜欢歌单
export function getsubscribeto(params){
    return request({
        url:"/like",
        method:"get",
        params
    })
}
///playlist/subscribers
export function getsubscrizhe(params){
    return request({
        url:"/playlist/subscribers",
        method:"get",
        params
    })
}
//获取用户播放记录
// type : type=1 时只返回 weekData, type=0 时返回 allData
///user/record
export function getweeksuer(params){
    return request({
        url:"/user/record",
        method:"get",
        params
    })
}
//获取用户等级信息/user/subcount
//获取用户歌单
export function getnamesonger( params){
    return request({
        url:"/user/playlist",
        method:"get",
        params
    })
}
//资源点赞
export function getzhiyunadian( params){
    return request({
        url:"/resource/like",
        method:"get",
        params
    })
}
